package com.xzh.mapper;

import com.xzh.entity.CarInformation;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface CarInMapper {

    void insert(CarInformation e);

    List<CarInformation> selectALL(CarInformation e);

    @Transactional
    void updateOrderStatus(CarInformation e);

    @Select("select * from carpool_orders where user_id = #{userId} and status = 0")
    CarInformation getCarInformation(int userId);
}